package com.btb.adapter.vo.request;

import java.util.List;

import com.btb.adapter.model.UpChainFish;
import com.btb.adapter.model.UpChainHero;
import com.google.common.collect.Lists;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Builder
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Data
@ToString
public class UpChainPageResult {
	private String address;
	private String type;
	private List<UpChainQuery> list;

	public static List<UpChainQuery> buildWithFish(final List<UpChainFish> fishs){
		List<UpChainQuery> list = Lists.newArrayList();
		fishs.forEach(x->{
			list.add(x.build());
		});
		return list;
	}
	public static List<UpChainQuery> buildWithHero(final List<UpChainHero> heros){
		List<UpChainQuery> list = Lists.newArrayList();
		heros.forEach(x->{
			list.add(x.build());
		});
		return list;
	}
}
